package com.pro.service.impl;

import com.pro.entry.JsCarousel;
import com.pro.mapper.JsCarouselMapper;
import com.pro.service.JsCarouselService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author 谭金诚
 * @Description TODO
 * @Date 2022/4/14 10:25
 * @Version 1.0
 */
@Service
public class JsCarouselServiceImple implements JsCarouselService {

    @Autowired
    private JsCarouselMapper mapper;

    @Override
    public List<JsCarousel> getJsCarousels() {
        List<JsCarousel> jsCarousels = mapper.getJsCarousels(2,5);//2 显示 5 显示5个
        return jsCarousels;
    }
}
